package com.aidex.system.service.impl;

import com.aidex.common.core.service.BaseServiceImpl;
import com.aidex.system.domain.VCsisBusinessAsd;
import com.aidex.system.mapper.VCsisBusinessAsdMapper;
import com.aidex.system.service.VCsisBusinessAsdService;
import com.github.pagehelper.PageInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 申报数据Service业务层处理
 * @author wll
 * @email wll
 * @date 2021-10-14
 */
@Service
@Transactional(readOnly = false)
public class VCsisBusinessAsdServiceImpl extends BaseServiceImpl<VCsisBusinessAsdMapper, VCsisBusinessAsd> implements VCsisBusinessAsdService
{
    private static final Logger log = LoggerFactory.getLogger(VCsisBusinessAsdServiceImpl.class);

    /**
     * 获取单条数据
     * @param vCsisBusinessAsd 申报数据
     * @return 申报数据
     */
    @Override
    public VCsisBusinessAsd get(VCsisBusinessAsd vCsisBusinessAsd)
    {
        VCsisBusinessAsd dto = super.get(vCsisBusinessAsd);
        return dto;
    }

    /**
     * 获取单条数据
     * @param id 申报数据id
     * @return 申报数据
     */
    @Override
    public VCsisBusinessAsd get(String id)
    {
        VCsisBusinessAsd dto = super.get(id);
        return dto;
    }


    /**
     * 查询申报数据列表
     * @param vCsisBusinessAsd 申报数据
     * @return 申报数据
     */
    @Override
    public List<VCsisBusinessAsd> findList(VCsisBusinessAsd vCsisBusinessAsd)
    {
        return super.findList(vCsisBusinessAsd);
    }

    /**
     * 分页查询申报数据列表
     * @param vCsisBusinessAsd 申报数据
     * @return 申报数据
     */
    @Override
    public PageInfo<VCsisBusinessAsd> findPage(VCsisBusinessAsd vCsisBusinessAsd)
    {
        return super.findPage(vCsisBusinessAsd);
    }

    /**
     * 保存申报数据
     * @param vCsisBusinessAsd
     * @return 结果
     */
    @Override
    public boolean save(VCsisBusinessAsd vCsisBusinessAsd)
    {
        return super.save(vCsisBusinessAsd);
    }


    /**
     * 删除申报数据信息
     * @param vCsisBusinessAsd
     * @return 结果
     */
    @Override
    public boolean remove(VCsisBusinessAsd vCsisBusinessAsd)
    {
        return super.remove(vCsisBusinessAsd);
    }

    /**
     * 批量删除申报数据
     * @param ids 需要删除的申报数据ID
     * @return 结果
     */
    @Transactional(readOnly = false)
    @Override
    public int deleteVCsisBusinessAsdByIds(String[] ids)
    {
        return mapper.deleteVCsisBusinessAsdByIds(ids);
    }

    @Override
    public List<VCsisBusinessAsd> getUnHandleBillList(Integer limit) {
        return mapper.getUnHandleBillList(limit);
    }

    @Override
    public void update(VCsisBusinessAsd entity) {
        mapper.update(entity);
    }

    @Override
    public VCsisBusinessAsd getByAwbNo(String awbNo) {
        return mapper.getByAwbNo(awbNo);
    }

}
